<?php $mp_list = model('wechat/mp')->order('id asc')->select(); ?>

<div class="btn-group" role="group">
    <button type="button" class="btn btn-tumblr dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
        <i class="fa fa fa-wechat "></i>&nbsp;&nbsp;{$current_mp.name}&nbsp;<span class="caret"></span>
    </button>
    <ul class="dropdown-menu">
        <?php foreach($mp_list as $mp_info): ?>
            <li><a href="{:$_controller->url('index', ['mp_number' => $mp_info['mp_number']])}">{$mp_info.name}</a></li>
        <?php endforeach; ?>
    </ul>
</div>

